#!/usr/bin/python

import sys

class LogWriter(object):
    eol = '\n'
    method = sys.stdout.write
    
    def write(_, category, message):
        _.method("<%s> %s%s" % (category, message, _.eol))
        
        if category == 'raise':
            #raise message
            sys.exit(1)

log = LogWriter()

